import request from '@/utils/request'

// 查询交通物流规划列表
export function listTransportPlan(query) {
  return request({
    url: '/dataBase/transportPlan/list',
    method: 'get',
    params: query
  })
}

// 查询交通物流规划详细
export function getTransportPlan(id) {
  return request({
    url: '/dataBase/transportPlan/' + id,
    method: 'get'
  })
}

// 新增交通物流规划
export function addTransportPlan(data) {
  return request({
    url: '/dataBase/transportPlan',
    method: 'post',
    data: data
  })
}

// 修改交通物流规划
export function updateTransportPlan(data) {
  return request({
    url: '/dataBase/transportPlan',
    method: 'put',
    data: data
  })
}

// 删除交通物流规划
export function delTransportPlan(id) {
  return request({
    url: '/dataBase/transportPlan/' + id,
    method: 'delete'
  })
}
